package user

import java.util.Date;

import institutional.Course;
import security.User;

class Professor extends User {
	long professorId
	
	static hasMany = [courses: Course] //Un profesor puede tener a cargo 0 o varios cursos
	
	
    static constraints = {
		professorId(nullable: false, unique: true)
	}
	
	@Override
	String toString() {
		return "${lastName}, ${firstName}"
	}
}
